import math
class landmark:
    """"坐标类"""
    x=0#
    y=0
    z=0

    def __init__(self, x, y,z):
        self.x = x
        self.y = y
        self.z = z

class landmark_2d:
    """2d坐标"""
    x=0
    y=0
    def __init__(self,x,y):
        self.x = x
        self.y = y


class hand_dist:
    """"存一只手所有点到腕部距离"""
    dist=[]#一只手所有点到腕部距离,从下标0到20

    def __init__(self,hds_lm):
        if len(hds_lm)==1:#如果只有一只手
            for i in range(21):
                #print(hds_lm[0])
                self.dist.append(math.sqrt(math.pow(hds_lm[0][0].x-hds_lm[0][i].x,2)+math.pow(hds_lm[0][0].y-hds_lm[0][i].y,2)))

class Write_Data:
    """写入文件的数据结构"""
    """清屏动作信息"""
    CLEAR_ALL_STD = []  # 供用户录制
    CLEAR_ALL_NAME=""
    CLEAR_ALL_MEAN=""


    WATERCOLOR_PEN_STD = []  # 供用户录制
    WATERCOLOR_PEN_NAME=""
    WATERCOLOR_PEN_MEAN=""

    def print_Data(self):
        print("clear",self.CLEAR_ALL_STD,self.CLEAR_ALL_NAME,self.CLEAR_ALL_MEAN)
        print("water",self.WATERCOLOR_PEN_STD,self.WATERCOLOR_PEN_NAME,self.WATERCOLOR_PEN_MEAN)


